<?php
namespace app\validate;

use app\base\BaseValidate;

/**
 * 验证器-UserAddressValidate
 * Class UserAddressValidate
 * @package app\validate
 */
class UserAddressValidate extends BaseValidate
{
    protected $rule = [
        'id' => 'require|number',
        'user_id' => 'require|number',
        'take_phone|手机' => 'require|mobile',
        'take_name|收货人' => 'require|max:255',
        'province|省市' => 'require',
        'city|市' => 'require',
        'district|区' => 'require',
        'detail_address|详细地点' => 'require',
        'is_default|默认收货' => 'in:1,2'
    ];
}
